package main

import (
	"os/exec"
)

const (
	_wdcliProtoc = "protoc --proto_path=%s --proto_path=%s --proto_path=%s --wdcli_out=:."
)

func installWdcliGen() error {
	return exec.Command("kratos", "tool", "check_install", "protoc-gen-wdcli").Run()
}

func genWdcli(files []string) error {
	return generate(_wdcliProtoc, files)
}
